Skip to content

Conversation

thecrypticace
Copy link
Contributor

Just realized we forgot to add a loadConfig stub when we released v4.0.0-alpha.21. We also need to actually fill in the implementations of loadPlugin and loadConfig so this PR does that.

We still need to add typescript support which I think means either:

  • relying on @tailwindcss/node in the prettier plugin; OR
  • loading it if it is installed

I'm not actually sure which option we should go with so I've not added typescript support yet.

@RobinMalfait
Copy link
Member

I think relying on @tailwindcss/node might be a good idea but not sure how easy that will be because we need to make sure that it maps to the correct tailwindcss version 🤔

I think this PR is a good improvement on its own already, so let's just get this merged and released and add TypeScript support later.

@thecrypticace thecrypticace merged commit 15e8009 into main Sep 10, 2024
1 check passed
@thecrypticace thecrypticace deleted the feat/v4-plugin-and-config-support branch September 10, 2024 12:13
bronisMateusz pushed a commit to bronisMateusz/prettier-plugin-tailwindcss-drupal that referenced this pull request Apr 16, 2025
* Support `@plugin` and `@config` in v4

* Rework fixture installation script

* Add basic v4 test

* Add v4 configs test

* Update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants